package com.ry.flink.job3;

import org.apache.commons.lang3.time.FastDateFormat;

public class TestWindow {
    public static void main(String[] args) {
        long l = System.currentTimeMillis();
//        System.out.println(l);
        String currTime = String.valueOf(System.currentTimeMillis());
//        System.out.println(currTime);
//
//        System.out.println(currTime.length());
//        int i = currTime.length() - 4;
//        System.out.println(i);
//        System.out.println(currTime.substring(currTime.length() - 4));
//        System.out.println(Integer.valueOf(currTime.substring(currTime.length() - 4)));

        while(Integer.valueOf(currTime.substring(currTime.length() - 4)) > 100){
            System.out.println(currTime);
            currTime=String.valueOf(System.currentTimeMillis());
            continue;
        }
        System.out.println("正常执行");
        System.out.println(currTime);
//        FastDateFormat dateformat =  FastDateFormat.getInstance("HH:mm:ss");
//        System.out.println("开始发送事件的时间："+dateformat.format(System.currentTimeMillis()));



    }
}
